<template>
  <view class="content">
    {{ devices.length }}
    <div
      class=""
      @click="onConnectDevice(value.deviceId)"
      v-for="value in devices"
      :key="value.deviceId"
    >
      {{ value.name }}
    </div>
  </view>
</template>

<script setup lang="ts">
import useBluetooth from "../../hooks/useBluetooth";

const { devices, onConnectDevice } = useBluetooth();
</script>

<style></style>
